#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QUdpSocket>
#include <QNetworkDatagram>
#include <QByteArray>
#include <QHostAddress>
#include <QRadioButton>
#include <QDebug>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    Ui::MainWindow *ui;
    QUdpSocket* udpSocket;
    QUdpSocket* udpSocketSender;

private slots:
    void on_udpSocket_recvive();
    void on_pbSend_clicked();
    void on_teRecvText_scroll();
    void on_teSendText_scroll();
    void on_pbClearSend_clicked();
    void on_pbClearRecv_clicked();
};

#endif // MAINWINDOW_H
